{% extends 'base.html' %}

{% block title %}导入设备 - Allen监控系统{% endblock %}

{% block content %}
<div class="card">
    <div class="card-header">
        <h5 class="mb-0">导入设备</h5>
    </div>
    <div class="card-body">
        <form method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <div class="mb-3">
                <label for="file" class="form-label">选择CSV文件</label>
                <input type="file" class="form-control" id="file" name="file" accept=".csv" required>
            </div>
            <button type="submit" class="btn btn-primary">导入</button>
            <a href="{% url 'download_template' %}" class="btn btn-secondary">下载模板</a>
        </form>
    </div>
</div>
{% endblock %} 